package com.ocom.company.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.company.EntityComDockApi;
import com.ocom.common.entity.company.EntityDockApi;
import com.ocom.common.vo.company.DockApiUrlVo;
import com.ocom.common.vo.company.GetDockApiConfigVo;

import java.util.List;
import java.util.Map;

public interface DockApiService extends IService<EntityDockApi> {
    List<DockApiUrlVo> getDockApiUrl(String dockCode,
                                     Integer grade,
                                     Long comId,
                                     String serverCode);

    List<EntityDockApi> getDockApiByDockCodeAndApiCode(String dockCode, String dockApiCode);

    List<EntityDockApi> getDockApiByDockCodeAndApiName(String dockCode, String apiName);

    List<EntityDockApi> getDockApiByDockCodeAndApiNameAndNotApiCode(String dockCode, String apiName, String dockApiCode);

    Boolean update(EntityDockApi entityDockApi);

    Map getPageDockApi(String dockCode, Integer page, Integer size, Map<String, Object> parameters);

    Map getPageDockApiList(String dockCode, String dockApiCode, String apiName, Integer grade, int page, int size);

    EntityDockApi getDockApi(String dockCode, String dockApiCode, Integer grade, Long comId, String serverCode);

}
